const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.userInfo.username,
  pic: state => state.user.userInfo.staffPhoto,
  // 全局抛出 随处应用 这个处理后的路由权限数据
  routes: state => state.permission.routes,
  // 抛出userInfo里面的权限设置里面的标识
  roles: state => state.user.userInfo.roles,
  // 抛出 user Info 全局使用
  userInfo: state => state.user.userInfo

}
export default getters
